#!/bin/bash

export IMAGE_NAME="my/nginx"
export CONTAINER_NAME="my-nginx"
export SERVER_PORT=80

docker build -t $IMAGE_NAME .

sleep 3

docker run -d --name $CONTAINER_NAME \
 -p $SERVER_PORT:80 \
 -v ${PWD}/default.conf:/etc/nginx/conf.d/default.conf \
 $IMAGE_NAME
